﻿@using KRM.Core

@using KRM.Core.Library
@model KRM.Core.tblBook
<form action="/HolidayManagement/CancelRequest" id="frCancelRequest" method="POST" class="form-horizontal">
    <input type="hidden" id="bookId" name="bookId" value="@Model.Id"/>
    <input type="hidden" name="userApprove" value="@Users.Current(User.Identity.Name).HRPersonalId"/>
    <div class="modal-header" >
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4>Cancel Holiday Request</h4>
    </div>
    <div class="modal-body" style="padding-bottom: 0px;">
        @Html.Partial("_RequestInfo")
        <div class="row">
            <div class="col-md-12" id="msg-frCancelRequest">
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="form-group ">
                    <label class="control-label col-md-12">Reason:</label>
                    <div class="col-md-12">
                        <textarea name="reason" id="reasontextarea" class="form-control" rows="2" style="border-color: #c09853;" required="required"></textarea>
                    </div>
                </div> 
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
        <button type="submit" id="btnAccept" class="btn dark"onclick="">Cancel Request</button>
    </div>
</form>
